#include "junix.h"

int
main (int argc, char **argv)
{
  if (argc == 1)
    {
      fprintf (stderr, "Usage:%s file\n", argv[0]);
      exit (EXIT_FAILURE);
    }

  struct stat st;
  if (stat (argv[1], &st) == -1)
    err_sys ("stat");

  print_stat (&st);
  return 0;
}
